package com.tengju.data.infrastructure.repository.clickhouse.convert;

import com.tengju.data.domain.model.clickhouse.DwsCrmSpuGmvDetailSumGmv;
import com.tengju.data.domain.model.user.UserIdCode;
import com.tengju.data.infrastructure.persistence.mybatis.dataobject.DwsCrmSpuGmvDetailSumGmvDO;

/**
 * @Author: 李大仙
 * @Date: 2021/5/7 10:51 上午
 */
public class DwsCrmSpuGmvDetailSumGmvConvert {
    public static DwsCrmSpuGmvDetailSumGmv convert(DwsCrmSpuGmvDetailSumGmvDO dwsCrmSpuGmvDetailSumGmvDO) {
        if (dwsCrmSpuGmvDetailSumGmvDO == null) {
            return null;
        }
        return new DwsCrmSpuGmvDetailSumGmv(
                new UserIdCode(dwsCrmSpuGmvDetailSumGmvDO.getDominationIdCode()),
                dwsCrmSpuGmvDetailSumGmvDO.getGmv());
    }
}
